package com.sscl.baselibrary.exts


/**
 * BooleanExt
 *
 * Boolean扩展类
 * @author jackie Penghe
 * @date 2024/9/4
 */



/**
 * 将boolean转为int(true = 1,false = 0)
 *
 * @return 对应的int值
 */
fun Boolean.toInt(): Int {
    return if (this) {
        1
    } else {
        0
    }
}
